﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Navigation;
using Microsoft.Phone.Controls;
using Microsoft.Phone.Shell;

namespace WP8.PropiedadesEspeciales.UserControls
{
    public partial class PerryControl : UserControl
    {

        public string TextoEspecial
        {
            get { return (string)GetValue(TextoEspecialProperty); }
            set { SetValue(TextoEspecialProperty, value); }
        }

        public static readonly DependencyProperty TextoEspecialProperty =
            DependencyProperty.Register("TextoEspecial", typeof(string), typeof(PerryControl), new PropertyMetadata("Grrrrr....", TextoEspecialCallback));

        private static void TextoEspecialCallback(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            var pc = d as PerryControl;
            pc.miTexto.Text = e.NewValue as string;
        }

        public PerryControl()
        {
            InitializeComponent();
        }
    }
}
